#!/bin/bash

#qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios QEMU_EFI.fd -display vnc=0.0.0.0:80 \
qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios QEMU_EFI.fd -nographic \
-net nic -net tap,ifname=tap0,script=no \
-drive if=none,file=centos7-arm64.img,format=raw,id=hd0 -device virtio-blk-device,drive=hd0

:<<!
qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios QEMU_EFI.fd -nographic \
-drive if=none,file=centos7-arm64.img,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 \
-drive if=none,file=CentOS-7-aarch64-Minimal-2009.iso,id=cdrom,media=cdrom \
-device virtio-scsi-device -device scsi-cd,drive=cdrom
!

:'
qemu-system-aarch64 -net nic,model=?

qemu-system-aarch64 -M virt,virtualization=true,gic-version=3 \
        -cpu cortex-a53 -smp 8 -m 4906 \
        -nographic -semihosting \
        -net nic,macaddr="14:58:d0:48:d8:f8" -net tap,ifname=$net_dev \
        -kernel out/Image \
        -append "console=ttyAMA0 ppm=0x80000000,2g,0xc0000000,512m" \
        -initrd out/initrd
        #-dtb host.dtb \
'

